import configDev from './env.dev'
import configTest from './env.test'
import configPro from './env.pro'

const mode = import.meta.env.MODE

interface BaseConfigType {
  title: string,
  baseUrl: string,
  baseApi: string,
  token: string
}

let config: BaseConfigType;

if (mode === 'development') {
  config = configDev
} else if (mode === 'test') {
  config = configTest
} else {
  config = configPro
}

export default config